|
Posizione nel menu |
---|
Mesh → Crea mesh da una forma... |
Ambiente |
Mesh |
Avvio veloce |
Nessuno |
Introdotto nella versione |
- |
Vedere anche |
Nessuno |
Il comando Mesh_FromPartShape crea oggetti mesh non parametrici (Mesh Features) da shape di oggetti (Part Features).
L'operazione inversa è Crea forma da mesh dell' Ambiente Part.
Questi sono i mesher disponibili e le loro impostazioni:
0
o deselezionando la casella di controllo, si ottiene una mesh molto grossolana.
0.1
- 1.0
.0.2
- 10.0
.0.2
- 10.0
.
Per utenti Linux è richiesto il modulo esterno Gmsh.
0
per determinare automaticamente questa dimensione.0
per determinare automaticamente questa dimensione.
Vedere: Mesh Feature.
Vedere anche: Script di base per FreeCAD
Per creare un oggetto mesh da un oggetto shape usa il metodo meshFromShape
del modulo MeshPart. Questo metodo ha diverse firme. La firma determina il mesher che verrà utilizzato. L'esempio seguente utilizza la firma mesher Mefisto.
import FreeCAD, Part, Mesh, MeshPart
cyl = FreeCAD.ActiveDocument.addObject("Part::Cylinder","Cylinder")
FreeCAD.ActiveDocument.recompute()
msh = FreeCAD.ActiveDocument.addObject("Mesh::Feature", "Mesh")
msh.Mesh = MeshPart.meshFromShape(Shape=cyl.Shape, MaxLength=1)
msh.ViewObject.DisplayMode = "Flat Lines"